home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1994 2nd Q2 / The Association of Shareware Professionals - The Official ASP Advantage (2nd Quarter)(1994).bin / files / utilfile / tbox14 / utils.doc < prev    next >
Encoding:
Text File  |  1993-11-14  |  98.1 KB  |  2,265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                              BINARY TOOLSHED
  10.  
  11.  
  12.  
  13.  
  14.                                  UTILITIES
  15.  
  16.  
  17.  
  18.  
  19.                                 USER MANUAL
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                             *
  31.                           *   *
  32.                         *       *
  33.                       *           *               The
  34.                     *               *
  35.                   *                   *           Binary
  36.                  *                     *
  37.                  *                     *          Toolshed
  38.                  *                     *
  39.                  *                     *
  40.                  *  ******             *
  41.                  *        *            *          V1.4
  42.                  *        *            *
  43.                  *        *            *          November 14, 1993
  44.                  *        *            *
  45.                  *        *            *
  46.                   ********             *
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.                              TABLE OF CONTENTS
  57.  
  58.     1.0 INTRODUCTION......................................................1
  59.     1.1 General...........................................................1
  60.     1.2 System Requirements and Installation..............................2
  61.     1.3 Other Manuals.....................................................3
  62.  
  63.     2.0 BTSPATCH..........................................................4
  64.  
  65.     3.0 DIRS..............................................................6
  66.  
  67.     4.0 DRIVES............................................................9
  68.  
  69.     5.0 MAKEBAT..........................................................11
  70.  
  71.     6.0 ONPATH...........................................................14
  72.  
  73.     7.0 TOASCII..........................................................15
  74.  
  75.     8.0 TREE.............................................................16
  76.  
  77.     9.0 VIEW.............................................................24
  78.  
  79.     10.0 WI..............................................................32
  80.  
  81.  
  82.     APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY.................38
  83.  
  84.  
  85.  
  86.  
  87. BTS Utilities User Manual                                            Page 1
  88. ___________________________________________________________________________
  89.  
  90.  
  91.  
  92. 1.0 INTRODUCTION
  93.  
  94. 1.1 General
  95.  
  96.     This manual describes a number of utility programs that are available
  97.     from The Binary Toolshed (BTS).  They accomplish a variety of
  98.     functions, many of which are not available through DOS or elsewhere.
  99.     While these programs can be used in conjunction with the ToolBOX and
  100.     TBOXCFG programs, they are independent and are capable of being used on
  101.     their own.
  102.  
  103.     The utility programs, are:
  104.  
  105.            BTSPATCH Provides the capability to set the default command line
  106.                     arguments for all Binary Toolshed programs.
  107.  
  108.           DIRS      Displays disk space utilization for directory branches.
  109.                     It produces the cumulative totals for a directory and
  110.                     all of its descendants.
  111.  
  112.            DRIVES   Displays disk drive parameters for all assigned drives.
  113.                     The presentation includes drive types, volume names,
  114.                     capacities, and free space available.
  115.  
  116.            MAKEBAT  Creates batch files based on a template data file and a
  117.                     file match specification for applicable files.
  118.  
  119.            ONPATH   Determines if specified files are accessible through
  120.                     the DOS PATH variable.
  121.  
  122.            TOASCII  Converts text files that use the extended IBM PC
  123.                     character set to use the standard 95 printable ASCII
  124.                     characters.
  125.  
  126.            TREE     Graphically displays the directory structure.  The user
  127.                     can  cursor through this structure to change director-
  128.                     ies or examine files.
  129.  
  130.            VIEW     Displays the contents of text files for viewing or
  131.                     browsing.
  132.  
  133.            WI       A 'WhereIs' program.  Finds specified files wherever
  134.                     they are located on the disk drive(s), and optionally
  135.                     carries out an operation on those files.
  136.  
  137.  
  138.  
  139.     These utilities are described in detail, starting alphabetically in
  140.     Section 2.0.
  141.  
  142.     The VIEW program can be used to examine the contents of this document.
  143.     If your current printer does not support line drawing and other
  144.     extended characters, use the TOASCII program to make a version of this
  145.     document that is compatible with your printer.
  146.  
  147. BTS Utilities User Manual                                            Page 2
  148. ___________________________________________________________________________
  149.  
  150.  
  151.  
  152.     Refer to the BTS General Product Overview Manual for a description of
  153.     conventions that are common to all BTS program products, including the
  154.     utilities.  The manual also contains a glossary of the terms and
  155.     documentation conventions that are used throughout The Binary Toolshed
  156.     manuals.
  157.  
  158.  
  159.  
  160. 1.2 System Requirements and Installation
  161.  
  162.  
  163.     Refer to the BTS General Product Overview Manual for a more detailed
  164.     description of the system requirements and installation procedures.
  165.  
  166.  
  167.     System requirements:
  168.  
  169.           o    any DOS version, 3.0 through 5.0
  170.  
  171.           o    any video card - MDA, CGA, EGA, or VGA
  172.  
  173.  
  174.     Installation procedure:
  175.  
  176.           o    copy each of the utilities to a directory on the PATH.
  177.  
  178.           o    it may be advantageous to move the data file that is
  179.                created the first time the TREE program is run.  Refer to
  180.                the TREE documentation in Section 8.
  181.  
  182.           o    use the BTSPATCH and TBOXCFG programs to personalize the
  183.                operation of each program as desired.
  184.  
  185.  
  186.  
  187.  
  188. BTS Utilities User Manual                                            Page 3
  189. ___________________________________________________________________________
  190.  
  191.  
  192. 1.3 Other Manuals
  193.  
  194.      For additional information, refer to:
  195.  
  196.           STRTHERE.DOC   Quick summary of the BTS program capabilities.
  197.  
  198.           ORDRINFO.DOC   Product support information - a description of the
  199.                          shareware concept, when to register and the
  200.                          advantages in doing so, warranty and support
  201.                          terms, and site license prices.
  202.  
  203.           GENERAL.DOC    Information that is common to all of the Binary
  204.                          Toolshed products; including packing information,
  205.                          installation, common program conventions, setup
  206.                          instructions for the sample datafiles provided, a
  207.                          glossary of applicable terms, and a series of
  208.                          questions and answers for many of the issues that
  209.                          arise during operation of the Binary Toolshed
  210.                          products.
  211.  
  212.           TBOX.DOC       User Manual for the main ToolBOX shell program.
  213.  
  214.           TBOXCFG.DOC    User Manual for the TBOXCFG configuration program.
  215.                          This program produces configuration files that are
  216.                          used by the ToolBOX program, as well as to a
  217.                          lesser extent the VIEW and TREE utilities.
  218.  
  219.  
  220. BTS Utilities User Manual                                 (BTSPATCH) Page 4
  221. ___________________________________________________________________________
  222.  
  223.  
  224. 2.0 BTSPATCH                                                           V1.4
  225. ___________________________________________________________________________
  226.  
  227.     PURPOSE:   Inserts a default set of command line arguments into any of
  228.                the Binary Toolshed programs.
  229.  
  230.  
  231.     USAGE:     btspatch progName [=progName_argument_list]
  232.  
  233.                where:
  234.  
  235.                     progName  BTS program to be patched.  The.exe extension
  236.                               is assumed.
  237.  
  238.                     =progName_argument_list
  239.                               the arguments to be used as the default
  240.                               settings for progName.
  241.  
  242.  
  243.     SUMMARY:   The utility program inserts (patches) the text after the
  244.                equal sign directly into the specified program - this must
  245.                be a Binary Toolshed program.  The arguments are stored as
  246.                entered, no validation is performed.  The effective result
  247.                is that these programs operate as if this text was entered
  248.                at the start of their command line each time the program is
  249.                executed.
  250.  
  251.                BTSPATCH displays:
  252.                     o the Binary Toolshed program name and version number
  253.                     o the previously stored argument settings
  254.                     o the new settings that are being inserted
  255.  
  256.                If the =progName_argument_list is omitted, BTSPATCH just
  257.                displays the previously existing settings.
  258.  
  259.                When the program is patched a backup copy of the original is
  260.                made with a .BAK extension.
  261.  
  262.  
  263.     EXAMPLE:   1) Set the default video parameters and a configuration file
  264.                   for the ToolBOX program.
  265.  
  266.                       btspatch tbox =-ve43 -cg @c:\bin\data\my.cfg
  267.  
  268.                       BTSPATCH V1.4 (c) 1992,93 - The Binary Toolshed
  269.  
  270.                       Program           : TBOX V1.40 (Unregistered Version)
  271.                       Current arguments : -ve43 -xt
  272.                       New argument list : -ve43 -cg @c:\bin\data\my.cfg
  273.  
  274.  
  275.  
  276. BTS Utilities User Manual                                 (BTSPATCH) Page 5
  277. ___________________________________________________________________________
  278.  
  279.  
  280.                2) Change the default for the number of levels displayed for
  281.                   the DIRS program to one.  Note the original factory
  282.                   defaults are not actually stored as command line
  283.                   arguments.
  284.  
  285.                       btspatch dirs =-l1
  286.  
  287.                       BTSPATCH V1.4 (c) 1992,93 - The Binary Toolshed
  288.  
  289.                       Program           : DIRS V1.40
  290.                       Current arguments :
  291.                       New argument list : -l1
  292.  
  293.  
  294.  
  295. BTS Utilities User Manual                                     (DIRS) Page 6
  296. ___________________________________________________________________________
  297.  
  298.  
  299. 3.0 DIRS                                                               V1.4
  300. ___________________________________________________________________________
  301.  
  302.     PURPOSE:   Displays the physical disk space allocated to a directory
  303.                branch, i.e. a directory and all of its subdirectories.
  304.  
  305.  
  306.     USAGE:     dirs  path -l# -[pP] -[sS]
  307.  
  308.                where (all arguments are optional):
  309.  
  310.                     path      the root directory to start the display from.
  311.                               The default is the current directory on the
  312.                               current drive.
  313.  
  314.                     -l#       where # indicates the maximum number of
  315.                               displayed levels.  # may range from 1 to 16
  316.                               with a default of 7.  Files for lower levels
  317.                               that are not displayed are still incorporated
  318.                               into the cumulative totals.
  319.  
  320.                     -p / -P   determines if DIRS should Pause after each
  321.                               complete output screen.  Default is pause:-P.
  322.  
  323.                     -s / -S   determines if the Summary report should be
  324.                               inhibited.  Default is no summary report:-S.
  325.  
  326.                The default is equivalent to: dirs .\ -l7 -P -S
  327.  
  328.  
  329.     SUMMARY:   Graphically shows the directory tree with the cumulative
  330.                space used by a directory and all of its subordinates.
  331.  
  332.                Entries within each level are listed alphabetically.
  333.  
  334.                All byte totals are in terms of integral cluster units.
  335.                That is, the unused space (slackspace) at the end of the
  336.                last allocated cluster for each file is included in the
  337.                total sizes.
  338.  
  339.                The main report contains three columns.  The first displays
  340.                the directory tree.  The second column identifies the total
  341.                space allocated by the directory to the left, INCLUDING all
  342.                of its subdirectories.  The third column identifies the
  343.                number of files and disk space used within the single
  344.                directory.
  345.  
  346.                The optional summary report contains two sections, one for
  347.                the drive and one for the branch.
  348.  
  349.                The drive portion is essentially self explanatory showing
  350.                the volume name, total capacity, free space (in bytes and as
  351.                a percentage), and the cluster size (the minimum allocation
  352.                unit size).  If the path started from the drive root, a
  353.                fourth line is displayed showing the drive space that is
  354.  
  355. BTS Utilities User Manual                                     (DIRS) Page 7
  356. ___________________________________________________________________________
  357.  
  358.  
  359.                unavailable for file allocation.  This includes space
  360.                allocated to bad blocks as well as directories.  For hard
  361.                disks this is typically in the order of 1 to 2%, while
  362.                network drives are usually much higher in the 10 to 15%
  363.                range.
  364.  
  365.                The branch portion of the report pertains specifically to
  366.                the information associated with the displayed branch: total
  367.                number of directories, files, and allocated bytes, as well
  368.                as the portion of the total drive used.  The last line shows
  369.                the slack space within the branch - the cumulative total of
  370.                the unusable space at the end of the files.  This varies
  371.                considerably, usually being higher with greater proportions
  372.                of smaller files.
  373.  
  374.  
  375.  
  376. BTS Utilities User Manual                                     (DIRS) Page 8
  377. ___________________________________________________________________________
  378.  
  379.  
  380.     EXAMPLE:   To display the data for drive c: for two directory levels
  381.                starting from the root, and to include a summary report:
  382.  
  383.  
  384.                dirs c:\ /s /l2
  385.  
  386.                Directory branch for - C:\
  387.  
  388.                \              32,360,448                30,720 in   3 files
  389.                ├─BIN             3,502,080           2,863,104 in 278 files
  390.                │ ├─DATA              313,344           313,344 in  34 files
  391.                │ ├─DOC               139,264           139,264 in   5 files
  392.                │ └─OLD               186,368           186,368 in  19 files
  393.                ├─DEV             2,390,016           2,390,016 in  21 files
  394.                ├─DOS               585,728             585,728 in  44 files
  395.                ├─PKG            25,694,208                   0 in   0 files
  396.                │ ├─LNL               129,024           129,024 in   9 files
  397.                │ ├─MAVIS             544,768           544,768 in   7 files
  398.                │ ├─MSC6            1,705,984           886,784 in  65 files
  399.                │ ├─PCPLUS          1,155,072           980,992 in  52 files
  400.                │ ├─PCTOOLS         1,777,664         1,777,664 in  63 files
  401.                │ ├─PM-PLUS         1,034,240         1,034,240 in 108 files
  402.                │ ├─QB              2,000,896           786,432 in  81 files
  403.                │ ├─QC              2,918,400         2,404,352 in  23 files
  404.                │ ├─TCPP            1,503,232         1,169,408 in  25 files
  405.                │ ├─WIN3            5,822,464         3,250,176 in 103 files
  406.                │ ├─WINWORD         1,155,072         1,155,072 in 202 files
  407.                │ ├─WORKS           2,748,416         2,654,208 in  92 files
  408.                │ ├─WP              2,807,808         1,828,864 in  30 files
  409.                │ └─XY                391,168           391,168 in  13 files
  410.                └─SYS               157,696             157,696 in  19 files
  411.  
  412.                Drive     : Volume - C:(SYS)
  413.                          : 33,449,984 total with 667,648 bytes free (2.0%)
  414.                          : Cluster size 2,048 bytes
  415.                          : 421,888 (1.3%) unavailable for file allocation
  416.  
  417.                Branch    : 32,360,448 bytes in 1,698 files, and 50 dirs
  418.                          : Occupies 96.7% of the total drive
  419.                          : Slack space 2,100,550 bytes or 6.5%
  420.  
  421.  
  422. BTS Utilities User Manual                                   (DRIVES) Page 9
  423. ___________________________________________________________________________
  424.  
  425.  
  426. 4.0 DRIVES                                                             V1.4
  427. ___________________________________________________________________________
  428.  
  429.     PURPOSE:   Displays parameters for all of the allocated disk drives.
  430.  
  431.  
  432.     USAGE:     drives [-f]
  433.  
  434.                where:
  435.  
  436.                     -f        include diskette data in the report
  437.  
  438.  
  439.     SUMMARY:   Produces a report with a summary line for each allocated
  440.                logical drive in the system.
  441.  
  442.                If the -f option is not specified, the particular diskette
  443.                drive type is determined but the drive is not physically
  444.                accessed.  With the -f argument, the diskette drives must
  445.                have valid diskettes mounted.  Fields that are not available
  446.                because the diskette was not accessed are shown as ---.
  447.  
  448.                Information contained within the report includes:
  449.  
  450.                     drive     where multiple drive letters all reference
  451.                               the same physical drive, only one line is
  452.                               produced.  This can occur through the DOS
  453.                               SUBST command or a network mapping.
  454.  
  455.                     capacities   for each drive, the total capacity and the
  456.                               free space, as a percentage and in MegaBytes
  457.                               (1 MegaByte = 1,024,000 bytes).
  458.  
  459.                     type      whether a hard disk, ramdisk, network drive,
  460.                               Stacker (the pseudo drive created by the
  461.                               STACKER disk compression program), or one of
  462.                               the six diskette types (if the -f option is
  463.                               used, this is the type of the diskette,
  464.                               otherwise it is the type of the drive).
  465.  
  466.                     volume    disk drive name.
  467.  
  468.                Following the report are totals for the total capacity, and
  469.                free space (Mb and %).  These totals do not include the
  470.                diskette drives or ramdisks, and each physical disk is only
  471.                included once.
  472.  
  473.  
  474. BTS Utilities User Manual                                  (DRIVES) Page 10
  475. ___________________________________________________________________________
  476.  
  477.  
  478.  
  479.     EXAMPLE:   Display parameters for currently assigned drives.  Do not
  480.                physically access the diskette drives:
  481.  
  482.                  DRIVES
  483.  
  484.                          free    used   capacity
  485.                  drive   (Mb)     (%)     (Mb)       type     volume name
  486.                  ─────  ──────   ─────  ────────   ────────  ────────────
  487.                    a:     ---     ---     1.20    1.2Mb 5¼   ---
  488.                    b:     ---     ---     0.36    360KB 5¼   ---
  489.                    c:    1.23    96.3    32.67    Hard Disk  SYS
  490.                    d:    4.96    85.2    32.67    Hard Disk  WRK
  491.                    e:    0.07    92.8     0.97    Hard Disk  TINYDRIV.E
  492.                    f:    0.08    81.3     0.41    Ram Disk   MS-RAMDR.IVE
  493.              g: j: y:    8.83    96.4   246.29    Net Drive  USR
  494.           h: w: x: z:   10.48    95.6   238.80    Net Drive  PUBLIC
  495.                    k:    2.34    99.0   225.28    Net Drive  DEV
  496.                    l:   17.09    93.6   262.13    Net Drive  NET-WRK
  497.                    m:   15.00    80.2    75.78    Net Drive  VCS
  498.                        ══════   ═════  ═══════
  499.                         59.99    94.7  1112.88
  500.  
  501.  
  502.  
  503. BTS Utilities User Manual                                 (MAKEBAT) Page 11
  504. ___________________________________________________________________________
  505.  
  506.  
  507. 5.0 MAKEBAT                                                            V1.4
  508. ___________________________________________________________________________
  509.  
  510.     PURPOSE:   Creates batch files based on a template file and a selection
  511.                of files from a specified directory.
  512.  
  513.  
  514.     USAGE:     MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  515.  
  516.                where:
  517.  
  518.                     [d:][path]matchlist
  519.                               selection criteria for files to be applied
  520.                               to the template.
  521.  
  522.                     @template.ext
  523.                               a template file containing text lines with
  524.                               embedded variables that reference selected
  525.                               files.  If not provided, the input is
  526.                               assumed to come from STDIN.  No standard
  527.                               extension is used.
  528.  
  529.                     -arg1 -arg2 . . .
  530.                               these arguments (stripped of the - prefix)
  531.                               are used by variable references within the
  532.                               template file.
  533.  
  534.  
  535.     SUMMARY:   While intended for creating batch files, the facility can be
  536.                used for a variety of purposes.  The basic operation is that
  537.                for each file specified by the match list, the text lines
  538.                from the template (or STDIN) are copied to STDOUT.  Each of
  539.                the text lines within the template may contain variables (of
  540.                the form $x) which are replaced with some attribute of the
  541.                matched file.
  542.  
  543.                Within the template file, whether it was an actual file or
  544.                STDIN, each line is processed once for each selected file
  545.                except for lines prefixed with "[" or "]".  These are
  546.                processed once only, before and after the balance of the
  547.                template processing respectively.
  548.  
  549.  
  550. BTS Utilities User Manual                                 (MAKEBAT) Page 12
  551. ___________________________________________________________________________
  552.  
  553.  
  554.                The text lines within the template file can contain two
  555.                letter variables consisting of a "$" followed by a letter.
  556.                These are similar to the <CTRL x> variables available within
  557.                ToolBOX.  The variables, which can reference the current
  558.                path or the matchlist path, are:
  559.  
  560.                     $D  current drive letter
  561.                     $P  current path
  562.                     $d  matchlist drive letter
  563.                     $p  matchlist path
  564.                     $n  filename (to 8 characters)
  565.                     $x  extension (to 3 characters)
  566.                     $f  minimized file name (for $d:$p\$n.$x)
  567.                     $$  a single literal $
  568.  
  569.                Variables can also reference the optional arguments
  570.                specified on the command line:
  571.  
  572.                     $1   the first argument -arg1
  573.                     $2   the second argument -arg2
  574.                     ...
  575.                     $9   the ninth argument
  576.  
  577.                When using STDIN, type <CTRL Z> to terminate the input data.
  578.  
  579.                A summary line is produced showing the number of input
  580.                lines, files, and output lines.  This is issued to STDERR so
  581.                that it will not be redirected.
  582.  
  583.  
  584.     EXAMPLE:   Assume a template file (MAKEBAT.TST) containing:
  585.  
  586.                     [LEADING LINE
  587.                     ]TRAILING LINE
  588.                     TESTING - CURRENT DRIVE      : $$D = $D
  589.                             - CURRENT PATH       : $$P = $P
  590.                             - REFERENCED DRIVE   : $$d = $d
  591.                             - REFERENCED PATH    : $$p = $p
  592.                             - REFERENCED NAME    : $$n = $n
  593.                             - REFERENCED .EXT    : $$x = $x
  594.                             - MINIMIZED FILENAME : $$f = $f
  595.                             - arg1               : $$1 = $1
  596.                             - arg2               : $$2 = $2
  597.                             - arg3               : $$3 = $3
  598.                             - arg4               : $$4 = $4
  599.  
  600.  
  601. BTS Utilities User Manual                                 (MAKEBAT) Page 13
  602. ___________________________________________________________________________
  603.  
  604.  
  605.                Now execute the following command from the d:\utl directory.
  606.                Assume this matches two files, TBOX.EXE and TBOX.DOC.
  607.  
  608.                  >makebat c:\bin\tbox.* @makebat.txt -first -second -third
  609.  
  610.                The summary line is
  611.  
  612.                     Lines in 13:   Files matched 2:    Lines output 34
  613.  
  614.                The output to STDOUT is:
  615.  
  616.                     LEADING LINE
  617.                     TESTING - CURRENT DRIVE      : $D = D
  618.                             - CURRENT PATH       : $P = \UTL
  619.                             - REFERENCED DRIVE   : $d = C
  620.                             - REFERENCED PATH    : $p = \BIN
  621.                             - REFERENCED NAME    : $n = TBOX
  622.                             - REFERENCED .EXT    : $x = DOC
  623.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.DOC
  624.                             - arg1               : $1 = first
  625.                             - arg2               : $2 = second
  626.                             - arg3               : $3 = third
  627.                             - arg4               : $4 =
  628.                     TESTING - CURRENT DRIVE      : $D = D
  629.                             - CURRENT PATH       : $P = \UTL
  630.                             - REFERENCED DRIVE   : $d = C
  631.                             - REFERENCED PATH    : $p = \BIN
  632.                             - REFERENCED NAME    : $n = TBOX
  633.                             - REFERENCED .EXT    : $x = EXE
  634.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.EXE
  635.                             - arg1               : $1 = first
  636.                             - arg2               : $2 = second
  637.                             - arg3               : $3 = third
  638.                             - arg4               : $4 =
  639.                     TRAILING LINE
  640.  
  641.  
  642.  
  643. BTS Utilities User Manual                                  (ONPATH) Page 14
  644. ___________________________________________________________________________
  645.  
  646.  
  647. 6.0 ONPATH                                                            V1.40
  648. ___________________________________________________________________________
  649.  
  650.     PURPOSE:   Determines if any files, and which ones, will be accessed
  651.                through the search path.
  652.  
  653.     USAGE:     ONPATH  matchlist [=setvariable] ...
  654.  
  655.                where:
  656.  
  657.                     matchlist      list of one or more file specifications
  658.                                    to be searched for.
  659.  
  660.                     =setvariable   alternate set variable in place of PATH.
  661.  
  662.  
  663.     SUMMARY:   ONPATH will search through the directories in the PATH
  664.                variable to find the files identified in the matchlist.  The
  665.                search is carried out in the same order as the DOS search
  666.                for program names; that is the current directory and then
  667.                the PATH directories starting from the first.  A summary
  668.                line is displayed as each valid file match is detected.
  669.  
  670.                If multiple matches for programs occur, it is the first that
  671.                would be executed if the program name were entered without a
  672.                path specification.  Also, if multiple executable files are
  673.                found within the same directory, DOS gives precedence to the
  674.                .COM, then .EXE, and finally the .BAT variation.
  675.  
  676.                While the default is to search the PATH variable, any
  677.                alternate set variable that follows the same format can be
  678.                specified: for example =LIB, =TMP, or =INCLUDE.  =PATH is
  679.                assumed if no other set variables are referenced.
  680.  
  681.  
  682.     EXAMPLE:   To find all files on the PATH which start with "tbox"
  683.                followed by anything, and which have any extension:
  684.  
  685.                     onpath tbox*
  686.  
  687.                         120,466 Jly14/93 12:29 D:\BIN\TBOX.DOC
  688.                          57,723 Jly14/93 01:00 D:\BIN\TBOX.EXE
  689.                          50,367 Jly14/93 01:12 D:\BIN\TBOXCFG.EXE
  690.  
  691.  
  692.  
  693. BTS Utilities User Manual                                 (TOASCII) Page 15
  694. ___________________________________________________________________________
  695.  
  696.  
  697. 7.0 TOASCII                                                            V1.4
  698. ___________________________________________________________________________
  699.  
  700.     PURPOSE:   Filter for converting text files with IBM extended
  701.                characters to standard ASCII text.
  702.  
  703.     USAGE:     toascii  <input  >output
  704.  
  705.     SUMMARY:   The primary purpose of this utility is to make text files
  706.                that contain line drawing and other extended characters,
  707.                acceptable for printers that only support standard ASCII
  708.                characters.  This applies for example to the text of this
  709.                document as well as data output by the DRIVES and DIRS
  710.                utilities.
  711.  
  712.                The TOASCII utility program translates text from STDIN to
  713.                STDOUT.  Embedded characters that are outside the standard
  714.                ASCII text range are translated to the closest equivalent
  715.                within the range.  The acceptable ASCII characters are those
  716.                in the range 32 through 126, plus carriage return, linefeed,
  717.                tab and EOF.
  718.  
  719.                The general translations performed are:
  720.  
  721.                     o line drawings to | - or +
  722.                     o accented characters to the unaccented equivalent
  723.                     o numeric type characters to #
  724.                     o shaded and bullet characters to #
  725.                     o all other characters to ?
  726.  
  727.                Substitutions are always one for one; the file size will not
  728.                change.
  729.  
  730.  
  731.     EXAMPLE:   1) To convert this document to a file containing only
  732.                   standard ASCII characters:
  733.  
  734.                      toascii <utils.doc  >utils.asc
  735.  
  736.  
  737.                2) To convert this document directly to the printer:
  738.  
  739.                      toascii <utils.doc  >prn
  740.  
  741.  
  742.                3) Use pipes to produce a paginated ASCII screen version of
  743.                   the DIRS program output:
  744.  
  745.                      dirs \ /p | toascii | more
  746.  
  747. BTS Utilities User Manual                                    (TREE) Page 16
  748. ___________________________________________________________________________
  749.  
  750.  
  751. 8.0 TREE                                                               V1.4
  752. ___________________________________________________________________________
  753.  
  754.     PURPOSE:   Full screen program to provide a visual representation of a
  755.                directory structure.
  756.  
  757.     USAGE:     tree path @cfgfile -Dpath  -V[b m c s e v]  -C[m c g]
  758.                     -X[a#][c][dD][i][t#][uU]
  759.  
  760.                where (all arguments are optional):
  761.  
  762.                     path      initial display drive and/or directory.
  763.                               Defaults to current directory.
  764.  
  765.                     @cfgfile  full configuration pathname.  Color and
  766.                               default-command-line- argument components
  767.                               are used.
  768.  
  769.                     -Dpath    directory for BTS-TREE.DAT.  Defaults to
  770.                               first directory on PATH.
  771.  
  772.                     -Video[bIOS mONOCHROME sNOW cGA eGA vGA]
  773.                               Refer to the VIEW utility in Section 9.0
  774.                               for details.  No argument is provided
  775.                               for screen lines as TREE automatically
  776.                               adapts to the DOS setting, whether 25, 43,
  777.                               or 50 lines.
  778.  
  779.                     -Color[mONOCHROME cOLOR gRAYSCALE]
  780.                               Refer to the VIEW utility in Section 9.0
  781.                               for details.
  782.  
  783.  
  784.                     -X        eXecute flags (Default = -Xa15Dt7U)
  785.  
  786.                          a#        Audio, where # enables error sounds for
  787.                                    1(border) + 2(syntax) + 4(execution)
  788.                                    +8 (directory screen update).
  789.  
  790.                          c         force Current drive tree initialization.
  791.  
  792.                          d / D     use Datafile.
  793.  
  794.                          i         force Initialization of all drive trees.
  795.  
  796.                          t#        set filelist update wait Time
  797.                                    (tenths/sec).
  798.  
  799.                          u / U     Update datafile enable.
  800.  
  801.  
  802.  
  803. BTS Utilities User Manual                                    (TREE) Page 17
  804. ___________________________________________________________________________
  805.  
  806.  
  807.     SUMMARY:   The TREE utility provides a windowed visual representation
  808.                of the disk directory structure.  Commands are provided to:
  809.  
  810.                     o scroll through the directory structure.
  811.  
  812.                     o change the display to an alternate drive.
  813.  
  814.                     o move to a particular directory.
  815.  
  816.                     o display the list of files within a directory, or view
  817.                       the contents of individual files.
  818.  
  819.  
  820.                GENERAL OPERATION
  821.                _________________
  822.  
  823.                As shown in the following sample screen, the TREE window
  824.                overlays the central portion of the DOS screen.  The display
  825.                consists of three separate subwindows.  At any time, the
  826.                active cursor is in either the Directory Tree or the File
  827.                List window.  The three windows are:
  828.  
  829.                     Top Header
  830.  
  831.                          Shows the current drive and volume name, time,
  832.                          free space on the current drive (as a percentage),
  833.                          and the full directory path for the directory at
  834.                          the current cursor position.
  835.  
  836.                          It also contains the byte total for the files in
  837.                          the File List window - see below.
  838.  
  839.                     Directory Tree
  840.  
  841.                          This lower left window pictorially displays the
  842.                          directory tree structure.  The entry for the
  843.                          currently selected cursor position is highlighted,
  844.                          and a diamond () is placed to the left of the
  845.                          current directory.  Directory entries within each
  846.                          level are ordered alphabetically.
  847.  
  848.                     File List
  849.  
  850.                          This lower right window displays an alphabetical
  851.                          list of the files within the directory at the
  852.                          current Directory Tree cursor position.  This data
  853.                          changes each time the Directory Tree window cursor
  854.                          is moved.  See below for a complete explanation.
  855.  
  856.                By default, when the utility is initially started the
  857.                display shows the current drive with the cursor at the
  858.                current directory.  The command line "path" argument can be
  859.                used to override this initial default drive and/or path.
  860.  
  861.  
  862. BTS Utilities User Manual                                    (TREE) Page 18
  863. ___________________________________________________________________________
  864.  
  865.  
  866.                       ┌Free 1% ─────── C:(SYS) ──────13:01:38┐
  867.                       │ \DOS                         540,004 │
  868.                       └──────────────────────────────────────┘
  869.                       ╔════════════════════════╗╔════════════╗
  870.                       ║├─BIN                   ║║ANSI.SYS    ║
  871.                       ║│ ├─DATA                ║║APPEND.EXE  ║
  872.                       ║│ └─DOC                 ║║ASSIGN.COM  ║
  873.                       ║├─DEV                   ║║ATTRIB.EXE  ║
  874.                       ║├DOS                   ║║BASRUN.EXE  ║
  875.                       ║├─PKG                   ║║BRUN30.EXE  ║
  876.                       ║│ ├─LNL                 ║║CHKDSK.COM  ║
  877.                       ║│ ├─MAVIS               ║║COMMAND.COM ║
  878.                       ║│ ├─MSC6                ║║COMMAND.ORG ║
  879.                       ║│ │ └─LIB-DATA          ║║COMMAND.PIF ║
  880.                       ║│ ├─PCPLUS              ║║COMP.COM    ║
  881.                       ║│ │ ├─1200B             ║║CURRENT.STS ║
  882.                       ║│ │ ├─CFG               ║║DEBUG.COM   ║
  883.                       ║│ │ └─DATA              ║║DISKCOMP.COM║
  884.                       ║│ ├─PCTOOLS             ║║DISKCOPY.COM║
  885.                       ╚════════════════════════╝╚════════════╝
  886.  
  887.                The optional command line argument "@cfgfile" specifies a
  888.                configuration file as created by TBOXCFG.EXE.  The color
  889.                settings and default-command-line-arguments within this file
  890.                are used, with all other settings being discarded.  Any
  891.                required path or extension for the configuration file must
  892.                be explicitly specified.
  893.  
  894.                On startup, the Directory Tree window is active.  Subse-
  895.                quently the user can switch back and forth between the
  896.                Directory Tree and File List windows, with the active window
  897.                being indicated by the highlighted border.
  898.  
  899.                <F1> can be entered at any time.  It produces several Help
  900.                screens of information that describe the available keyboard
  901.                controls and command line arguments.  Use <ESC> to terminate
  902.                the Help screens.
  903.  
  904.                Enter <ESC> or <ALT q> to exit from the program without
  905.                making any directory changes.  No verification prompts are
  906.                issued.
  907.  
  908.  
  909.  
  910. BTS Utilities User Manual                                    (TREE) Page 19
  911. ___________________________________________________________________________
  912.  
  913.  
  914.                DIRECTORY TREE WINDOW
  915.                _____________________
  916.  
  917.                Within the Directory Tree window, the user has a number of
  918.                single key commands available:
  919.  
  920.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>,
  921.                     <HOME><HOME>, <END><END>
  922.  
  923.                          These vertical motion commands move the cursor for
  924.                          the selected directory.  The motion is independent
  925.                          of the actual tree structure.  For example <DOWN>
  926.                          moves to the next adjacent directory, regardless
  927.                          of whether it is at the same, or a higher or lower
  928.                          level.
  929.  
  930.                     <RIGHT>
  931.  
  932.                          Activate the File List window with data for the
  933.                          directory selected at the current cursor.
  934.  
  935.                     <RETURN>
  936.  
  937.                          Change the current drive and directory to the
  938.                          directory at the selected cursor position, and
  939.                          then exit from the TREE program.
  940.  
  941.                     <SHIFT UP>, <SHIFT DOWN>
  942.  
  943.                          Move to the previous or next directory respect-
  944.                          ively that exists at the same level as the current
  945.                          directory cursor.
  946.  
  947.                     <SHIFT LEFT>, <SHIFT RIGHT>
  948.  
  949.                          Move to the next directory at a higher (i.e.
  950.                          parent) or lower (i.e. first subdirectory) level
  951.                          respectively.
  952.  
  953.                     <mid keypad 5>
  954.  
  955.                          Equivalent to <SHIFT UP> and <SHIFT DOWN> above
  956.                          except moves in same direction as the previously
  957.                          used cursor key.
  958.  
  959.                     <letter>
  960.  
  961.                          Fast directory find.  Cursor is moved to the next
  962.                          directory that starts with the entered letter
  963.                          (actually any valid filename character).  Case is
  964.                          not significant.  The directory tree is treated as
  965.                          a circular list with automatic wrap around.
  966.  
  967.  
  968. BTS Utilities User Manual                                    (TREE) Page 20
  969. ___________________________________________________________________________
  970.  
  971.  
  972.                     <CTRL letter>
  973.  
  974.                          Switch the tree display to the drive represented
  975.                          by the letter.  For example, <CTRL D> to move to
  976.                          drive D.  An error tone is issued if the requested
  977.                          drive does not exist.
  978.  
  979.                     <keypad ->, <keypad +>
  980.  
  981.                          The TREE utility maintains a list of the last
  982.                          accessed disk drives.  These keys update the
  983.                          display in a circular manner respectively to the
  984.                          next previous or oldest drive in the list.
  985.  
  986.                     <CTRL PGDN>, <CTRL PGUP>
  987.  
  988.                          These keys update the display to the next adjacent
  989.                          logical disk drive - alphabetically down or up
  990.                          respectively.  This sequence automatically wraps
  991.                          around after the lowest or highest drive.  For
  992.                          example, if the user is on drive B: and only
  993.                          drives A:, B:, and C: exist, then successively
  994.                          entering <CTRL RIGHT> cycles to C:, A:, B:, C:,
  995.                          A:, and so on.
  996.  
  997.                Refer to the General Product Overview Manual for alternate
  998.                keys for the <SHIFT cursor> and <mid pad 5> keystrokes which
  999.                may not be available on all PCs.
  1000.  
  1001.                FILE LIST WINDOW
  1002.                _________________
  1003.  
  1004.                The File List window contains an alphabetical list of the
  1005.                files for the directory identified by the cursor location in
  1006.                the Directory Tree window.
  1007.  
  1008.                The File List window can be in any of three states:
  1009.  
  1010.                     Not-used
  1011.  
  1012.                          To prevent unnecessary disk activity and screen
  1013.                          updates, the File List window is not updated until
  1014.                          the user stops scrolling through the directory
  1015.                          tree for a predefined duration.  By default this
  1016.                          is seven tenths of a second, or slightly higher
  1017.                          than the default initial keyboard repeat rate.  To
  1018.                          suit personal tastes, this duration can be changed
  1019.                          to a higher or lower rate by the -Xt# command line
  1020.                          argument.
  1021.  
  1022.                          When Not-used, the File List window is clear and
  1023.                          the Tree Directory window border is highlighted.
  1024.                          The directory total in the header window is
  1025.                          blanked.
  1026.  
  1027.  
  1028. BTS Utilities User Manual                                    (TREE) Page 21
  1029. ___________________________________________________________________________
  1030.  
  1031.  
  1032.                     Filled-in
  1033.  
  1034.                          The File List window is filled-in with an alpha-
  1035.                          betical list of the files when the time delay for
  1036.                          the deferred update expires.  The Directory Tree
  1037.                          window is still active.
  1038.  
  1039.                          At this time the directory total field in the
  1040.                          header is set to the total number of bytes for all
  1041.                          files within the directory.  The field is set to
  1042.                          "No files" if there are no files.
  1043.  
  1044.                          There is a current maximum of 400 files within the
  1045.                          window.  If this is exceeded, the first 400 are
  1046.                          used, the error tone is issued, and a "*" is
  1047.                          placed after the total field in the header.
  1048.  
  1049.                     Active
  1050.  
  1051.                          If there is a need to view a file, see the file
  1052.                          list quicker, or scroll through the file list,
  1053.                          then activate the File List window.  Do this by
  1054.                          entering <RIGHT> from the Tree Directory window.
  1055.                          If the window is not already filled-in the file
  1056.                          list is initially updated as above.  The active
  1057.                          File List window is identified by the highlighted
  1058.                          border and a cursor on the initial file entry.
  1059.  
  1060.                          Scroll through the file list as desired.  As for
  1061.                          the Tree Directory window, enter <any letter> as a
  1062.                          fast file find.  The cursor will move to the next
  1063.                          file entry that starts with the entered letter.
  1064.  
  1065.                          To view the file at the cursor, enter <RETURN>.
  1066.                          This will initiate the VIEW.EXE utility.
  1067.  
  1068.                          Enter <LEFT> to return to and reactivate the Tree
  1069.                          Directory window.
  1070.  
  1071.  
  1072.                BTS-TREE.DAT Data File
  1073.                ______________________
  1074.  
  1075.                To optimize speed, the utility maintains a data file with
  1076.                the most recent representation of the directory structure
  1077.                for all drives.  This file, BTS-TREE.DAT, is automatically
  1078.                updated as required to reflect changes in the directory
  1079.                structure.
  1080.  
  1081.                The first time the TREE utility is run, it will create the
  1082.                file in the first directory that exists on the PATH.  A
  1083.                window message is generated indicating where this data file
  1084.                is being created.  On subsequent times, the utility searches
  1085.                the current and then PATH directories for this data file.
  1086.                After the data file is initially created you may wish to
  1087.  
  1088. BTS Utilities User Manual                                    (TREE) Page 22
  1089. ___________________________________________________________________________
  1090.  
  1091.  
  1092.                move it to another directory on the PATH.  Especially if the
  1093.                first directory corresponds to a ramdisk.
  1094.  
  1095.                The -Dpath command line argument can be used to explicitly
  1096.                specify a directory for the BTS-TREE.DAT file.  If the file
  1097.                does not exist in this directory, it will be created.
  1098.  
  1099.                The -Xd command line argument inhibits use of the data file.
  1100.                With this setting, the data file is ignored and the disk
  1101.                structure is re-analyzed in its entirety each time a new
  1102.                drive tree is displayed.
  1103.  
  1104.  
  1105.                DATA FILE UPDATES
  1106.                _________________
  1107.  
  1108.                Normally, changes within the directory tree structure are
  1109.                automatically detected and adjusted for.  The tree
  1110.                information for the drives is initially read from the BTS-
  1111.                TREE.DAT file.  Each time the file list window is updated,
  1112.                the accompanying directories are compared to the BTS-
  1113.                TREE.DAT version.  If there is a difference, this branch of
  1114.                the tree is automatically updated.  An audible tone, best
  1115.                characterized as a "sproing", is issued when the update
  1116.                occurs.  The BTS-TREE.DAT file is updated with all such
  1117.                changes prior to displaying the next drive.
  1118.  
  1119.                Two command line -X subarguments are available for control-
  1120.                ling the use of the BTS-TREE.DAT datafile:
  1121.  
  1122.                     [dD]
  1123.  
  1124.                          This argument specifies whether to use (-XD) or
  1125.                          not use (-Xd) the BTS-TREE.DAT data file.  If not,
  1126.                          then each time the directory tree is displayed, it
  1127.                          is created by analyzing the entire disk structure.
  1128.                          This is considerably slower than reading the
  1129.                          equivalent information from the BTS-TREE.DAT file;
  1130.                          however, it does guarantee that the entire direct-
  1131.                          ory tree information is correct immediately.
  1132.  
  1133.                          The directory information for removable diskettes
  1134.                          is never stored in the BTS-TREE.DAT file.  It is
  1135.                          always created directly from the directory
  1136.                          structure on the diskette.
  1137.  
  1138.                     [uU]
  1139.  
  1140.                          Controls whether the BTS-TREE.DAT file is to be
  1141.                          updated (-XU) or not (-Xu) with the changes
  1142.                          detected for any of the directories.  Note the
  1143.                          screen display is always updated, this option just
  1144.                          controls whether the changes are to be recorded.
  1145.                          This feature is useful if there are temporary
  1146.                          drive reassignments.
  1147.  
  1148. BTS Utilities User Manual                                    (TREE) Page 23
  1149. ___________________________________________________________________________
  1150.  
  1151.  
  1152.  
  1153.                     [c]
  1154.  
  1155.                          Requests that the directory tree for the current
  1156.                          drive be updated immediately before the program
  1157.                          starts.  This is useful if there are known changes
  1158.                          that can be handled up front rather than waiting
  1159.                          for each to be detected individually later.
  1160.  
  1161.                     [i]
  1162.  
  1163.                          Requests that the directory tree for all drives be
  1164.                          updated immediately.
  1165.  
  1166.  
  1167.                The BTS-TREE.DAT updates identified above can be requested
  1168.                at any time through the keyboard by:
  1169.  
  1170.                     <ALT c>
  1171.  
  1172.                          Update the directory tree for the current drive.
  1173.                          This is similar to the -xc command line argument.
  1174.  
  1175.                     <ALT i>
  1176.  
  1177.                          Update the directory trees for all non-removable
  1178.                          drives.  This is similar to the -xi command line
  1179.                          argument.
  1180.  
  1181.  
  1182.  
  1183.     EXAMPLE:   To start the TREE program for drive d: with the cursor
  1184.                starting at the \dos directory, disabling the audible tones
  1185.                for syntax errors and the automatic directory updates,
  1186.                using color information from the c:\bin\my.cfg configuration
  1187.                file, and using the c:\data\bts-tree.dat data file:
  1188.  
  1189.                     tree d:\dos -xa5 @c:\bin\my.cfg -Dc:\data
  1190.  
  1191.  
  1192.  
  1193. BTS Utilities User Manual                                    (VIEW) Page 24
  1194. ___________________________________________________________________________
  1195.  
  1196.  
  1197. 9.0 VIEW                                                               V1.4
  1198. ___________________________________________________________________________
  1199.  
  1200.     PURPOSE:   Provides a mechanism for viewing the contents of text files.
  1201.  
  1202.     USAGE:     view [d:][path]matchlist @cfgfile
  1203.                  -V[b m c s e v][25 43 50]  -C[m c g]  -X[a#][iI][rR]
  1204.  
  1205.                where (all arguments are optional):
  1206.  
  1207.                     [d:][path]matchlist
  1208.                               specification for one or more files to be
  1209.                               viewed.  There are no assumed extensions.
  1210.  
  1211.  
  1212.                     @cfgfile  full configuration pathname.  Color, command-
  1213.                               line-argument, and banner name components are
  1214.                               used.  No default extensions are assumed.
  1215.  
  1216.                     -V[b m c s e v] [25 43 50]
  1217.  
  1218.                               By default, VIEW will select a video mode
  1219.                               applicable to the hardware and DOS state at
  1220.                               program startup.  The -V argument is used to
  1221.                               override this selection in order to use a
  1222.                               different monitor type (m,c,s,e,v), to use a
  1223.                               different output technique (b,s) or to alter
  1224.                               the screen resolution (25, 43, 50).
  1225.  
  1226.                          b    use BIOS output routines.  Normally video
  1227.                               data is issued directly to the video card.
  1228.                               Using the BIOS will slow down the video
  1229.                               update rate but may be necessary for some
  1230.                               incompatible systems.
  1231.  
  1232.                          m    assume monochrome text (MDA) video card.
  1233.  
  1234.                          c, e, or v
  1235.                               assume color graphics (CGA, EGA, or VGA)
  1236.                               video card.  All 3 settings have the same
  1237.                               effect.
  1238.  
  1239.                          s    assume CGA graphics video card and do
  1240.                               processing to remove snow on screen.  This
  1241.                               option slows down the update rate and should
  1242.                               be avoided unless necessary.
  1243.  
  1244.                          25   assume 25 visible lines of text.
  1245.  
  1246.                          43   assume EGA/VGA card and use the 43 line by 80
  1247.                               column mode.
  1248.  
  1249.                          50   assume VGA card and use the 50 line by 80
  1250.                               column mode.
  1251.  
  1252.  
  1253. BTS Utilities User Manual                                    (VIEW) Page 25
  1254. ___________________________________________________________________________
  1255.  
  1256.  
  1257.                -C[m c g]
  1258.  
  1259.                     Selects one of the predefined color tables.  If the
  1260.                     argument is not specified the current video hardware
  1261.                     configuration is examined and m or c assumed.  Any
  1262.                     setting can be used with any monitor.  Also, there is
  1263.                     no connection between the -C and -V settings.
  1264.  
  1265.                          m    monochrome text displays.
  1266.  
  1267.                          c    color displays.
  1268.  
  1269.                          g    gray scale displays, that is LCD or mono-
  1270.                               chrome monitors using color video cards.
  1271.                               This is greatly affected by the particular
  1272.                               combination of video card and display device.
  1273.  
  1274.  
  1275.                -X        eXecute flags (Default = -Xa7cir)
  1276.  
  1277.                          a#        Audio, where # enables error sounds for
  1278.                                    1(border) + 2(syntax) + 4(execution)
  1279.  
  1280.                          c / C     make text searches Case sensitive.
  1281.  
  1282.                          iI        exit Immediately without a verification
  1283.                                    prompt when <ESC> is entered.  <ALT q>
  1284.                                    always exits immediately, regardless
  1285.                                    of this setting.
  1286.  
  1287.                                    The I setting is primarily for the use
  1288.                                    of the ToolBOX and TREE programs which
  1289.                                    "appear" to integrate VIEW into their
  1290.                                    interface.
  1291.  
  1292.                          r / R     Restore the original DOS screen on exit,
  1293.                                    the alternative (r) being to leave the
  1294.                                    VIEW screen unaltered.
  1295.  
  1296.  
  1297.  
  1298. BTS Utilities User Manual                                    (VIEW) Page 26
  1299. ___________________________________________________________________________
  1300.  
  1301.  
  1302.     SUMMARY:   The VIEW utility provides a convenient mechanism for
  1303.                scrolling through the contents of a text file.  As
  1304.                illustrated in the following sample screen, the utility
  1305.                produces a full screen display of the text.  Commands are
  1306.                available to:
  1307.  
  1308.                     o scroll through the text contents, vertically and
  1309.                       horizontally
  1310.  
  1311.                     o search for specific text strings
  1312.  
  1313.                     o specify and view additional text files
  1314.  
  1315.                     o alter screen parameters
  1316.  
  1317.                While optimized for standard text in lines of less than 78
  1318.                characters, VIEW can be used to examine binary information.
  1319.  
  1320.  
  1321.  
  1322.     ╒═The Binary Toolshed ════════ VIEW ══════════ Tue Jly 14/93 23:12:54═╕
  1323.     │                                                                     │
  1324.     │This is a sample text file.  The text lines demonstrate the use of   │
  1325.     │the VIEW.EXE utility to examine or browse the contents of such a     │
  1326.     │data file.                                                           │
  1327.     │                                                                     │
  1328.     │The ┌───────────────────────────┐le up to the available memory limit.│
  1329.     │It a│File list          <ALT f> │lection, and text searches.         │
  1330.     │    │set file Matchlist <ALT m> │                                    │
  1331.     │    │Next┌──Enter filename matchlist──────────────┐                  │
  1332.     │    │Prev│sample2.txt                             │                  │
  1333.     │    │Sear└────────────────────────────────────────┘                  │
  1334.     │    │set search Case            │                                    │
  1335.     │    │set search Direction       │                                    │
  1336.     │    └───────────────────────────┘                                    │
  1337.     │                                                                     │
  1338.     │                                                                     │
  1339.     │                                                                     │
  1340.     │                                                                     │
  1341.     │                                                                     │
  1342.     │                                                                     │
  1343.     │                                                                     │
  1344.     │                                                                     │
  1345.     │                                                                     │
  1346.     ╘═SAMPLE.TXT═════════ Jly14/93 23:12══════════════════════(8)       8═╛
  1347.  
  1348.     EXAMPLE VIEW SCREEN : Popup Menu With Text Entry Window For Matchlist
  1349.  
  1350.  
  1351.  
  1352.  
  1353. BTS Utilities User Manual                                    (VIEW) Page 27
  1354. ___________________________________________________________________________
  1355.  
  1356.  
  1357.                GENERAL OPERATION
  1358.                _________________
  1359.  
  1360.                The VIEW screen contains status information on the top and
  1361.                bottom border lines.
  1362.  
  1363.                All of the file specific data is contained on the bottom
  1364.                line.  This includes the data file pathname, the last
  1365.                modification date, and on the lower right the line number of
  1366.                the last line on the screen.  If the last line number in the
  1367.                file is known, it is shown in parenthesis just to the left
  1368.                of this number.  Rather than reading all of the data
  1369.                initially, VIEW only reads subsequent sections of the data
  1370.                file when warranted.  A "***READING**" status indicator is
  1371.                shown on the bottom line when this occurs.  Only when the
  1372.                last line of the file has been been read will the parenthe-
  1373.                sized number appear.  If no data file is open, then the
  1374.                bottom status line is blank.
  1375.  
  1376.                While viewing the text file, the user has a number of single
  1377.                key commands available:
  1378.  
  1379.                     <F1>
  1380.  
  1381.                          Produces several Help screens of information that
  1382.                          describe the available keyboard controls and the
  1383.                          command line arguments.  Use <ESC> to terminate
  1384.                          the Help screens.
  1385.  
  1386.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>
  1387.  
  1388.                          These vertical motion commands move the screen
  1389.                          view in the anticipated direction - by one line,
  1390.                          one page, or to the extreme limits of the file.
  1391.  
  1392.  
  1393.                     <LEFT>, <RIGHT>
  1394.  
  1395.                          Normally the text window displays the first 78
  1396.                          characters of each line.  Text past column 78 can
  1397.                          be viewed by entering <RIGHT>.  This scrolls the
  1398.                          entire display right by 10 characters.  When the
  1399.                          text is scrolled right, the maximum line number
  1400.                          field on the bottom line is replaced by an
  1401.                          indicator for how far right the window is scroll-
  1402.                          ed.  For example if the screen is scrolled right
  1403.                          by two steps, then the field shows "(COLS+020)" to
  1404.                          indicate the viewable screen is actually showing
  1405.                          columns 21 through 98 of each line.  Use <LEFT> to
  1406.                          scroll back.
  1407.  
  1408.  
  1409.                     <ALT f>, <ALT m>, <keypad +>, <keypad ->
  1410.  
  1411.                          See the following File Operations section.
  1412.  
  1413. BTS Utilities User Manual                                    (VIEW) Page 28
  1414. ___________________________________________________________________________
  1415.  
  1416.  
  1417.  
  1418.  
  1419.                     <Alt g>, <ALT s>, <RETURN>, <CTRL RETURN>, <character>
  1420.  
  1421.                          See the Goto/Search Operations section.
  1422.  
  1423.                     </>
  1424.  
  1425.                          See the Popup Menu section.
  1426.  
  1427.  
  1428.                     <ALT 2>, <ALT 4>, <ALT 5>, <ALT 0>
  1429.  
  1430.                          These commands set the number of screen lines for
  1431.                          the VIEW display - to 25, 43, and 50 lines
  1432.                          respectively.  The <ALT 0> setting restores the
  1433.                          screen lines to the same setting DOS had when the
  1434.                          VIEW program was started.
  1435.  
  1436.                     <ESC>
  1437.  
  1438.                          Exit from the VIEW program.  Unless the "-XI"
  1439.                          command line argument is set, this key will
  1440.                          initiate a verification window to ensure the exit
  1441.                          is actually desired.  If there are additional
  1442.                          files in the current file list (see File
  1443.                          Operations below), then an option is also provided
  1444.                          in the verification window to open any of these
  1445.                          files.
  1446.  
  1447.                          <ESC> is also used to escape from the current
  1448.                          operation; whether entering search text or a
  1449.                          matchlist specification, or the popup menu.
  1450.  
  1451.                     <ALT q>
  1452.  
  1453.                          Exit from the VIEW program immediately.  No
  1454.                          verification prompt is issued.
  1455.  
  1456.                The single text file as described here, appears on startup
  1457.                if a single file was specified on the command line.
  1458.                Additional initial windows occur if no files, or multiple
  1459.                files, were specified on the command line.  For these
  1460.                conditions refer to the <ALT m> and <ALT f> explanations in
  1461.                the following File Operation section.
  1462.  
  1463.                Error windows will be generated if read errors occur or if
  1464.                the file size exceeds the available memory limit (for
  1465.                systems with a full complement of memory, this is typically
  1466.                in excess of 500KB).
  1467.  
  1468.  
  1469.  
  1470. BTS Utilities User Manual                                    (VIEW) Page 29
  1471. ___________________________________________________________________________
  1472.  
  1473.  
  1474.                FILE OPERATIONS
  1475.                _______________
  1476.  
  1477.                While VIEW is only capable of displaying one file at a time,
  1478.                it is possible to specify multiple files through a matchlist
  1479.                specification.  These can then be viewed in sequence.
  1480.  
  1481.                The file operation commands are:
  1482.  
  1483.                     <ALT m>
  1484.  
  1485.                          Enter a new file matchlist specification.  A text
  1486.                          entry window is generated for entering the match
  1487.                          list specification.  For example:
  1488.  
  1489.                               d:\dos\!*.com !*.exe
  1490.  
  1491.                          specifies all the files in the D:\DOS directory
  1492.                          except for the executable programs.
  1493.  
  1494.                          The default specification placed within the text
  1495.                          entry window is "*".  Simply enter <RETURN> if you
  1496.                          wish to see all of the files, or overwrite this
  1497.                          with a particular matchlist specification.  The
  1498.                          window will scroll horizontally if required for a
  1499.                          long specification.
  1500.  
  1501.                          If the completed matchlist specification refer-
  1502.                          ences a single file, the file is opened
  1503.                          immediately and the text presented on the VIEW
  1504.                          screen.  If the matchlist corresponds to no files,
  1505.                          an error tone is issued and the screen is blanked.
  1506.                          Re-enter <ALT m> and the correct specification.
  1507.                          If the matchlist specification corresponds to two
  1508.                          or more files a file list window is generated -
  1509.                          see the <ALT f> explanation below.
  1510.  
  1511.                     <ALT f>
  1512.  
  1513.                          Display an alphabetical list of all files matching
  1514.                          the current matchlist specification.  Cursor
  1515.                          within this list to the desired file and enter
  1516.                          <RETURN>.  This closes the current file, if any,
  1517.                          and opens the new one.  Newly opened files always
  1518.                          start with line one, column one in the upper left
  1519.                          corner of the screen.
  1520.  
  1521.                     <keypad +>, <keypad ->
  1522.  
  1523.                          Open the next, or previous, file respectively in
  1524.                          the current file list; that is the files refer-
  1525.                          enced by the last matchlist specification.
  1526.  
  1527.  
  1528. BTS Utilities User Manual                                    (VIEW) Page 30
  1529. ___________________________________________________________________________
  1530.  
  1531.  
  1532.                GOTO AND SEARCH OPERATIONS
  1533.                __________________________
  1534.  
  1535.                These commands are provided to move through the file in a
  1536.                non-sequential manner. In particular:
  1537.  
  1538.  
  1539.                     <ALT g>  or  + - or any numeric character
  1540.  
  1541.                          Goto an absolute or relative line within the file.
  1542.                          A text entry window is provided for entering the
  1543.                          line number.  Enter a specific number to request
  1544.                          an absolute line number.  Precede the number with
  1545.                          a + or - to indicate a displacement relative to
  1546.                          the current position.  For example, enter "3,000"
  1547.                          to go to line 3000, and enter "+50" to move 50
  1548.                          lines past the current position.  Following the
  1549.                          Goto operation for an absolute line number the
  1550.                          destination line is highlighted.  For relative
  1551.                          amounts the screen is simply shifted the
  1552.                          appropriate distance (i.e. no highlighting
  1553.                          changes).
  1554.  
  1555.  
  1556.                     <ALT s>  or  any alphabetical or punctuation character
  1557.  
  1558.                          Search for a text string.  Enter the desired
  1559.                          string into the text entry window.  By default,
  1560.                          the search is case insensitive and in the forward
  1561.                          direction, but these attributes can be altered
  1562.                          through the popup menu described in the next
  1563.                          section.  The text entry window will scroll
  1564.                          horizontally for long search strings.
  1565.  
  1566.                          If the requested text is located, it will be
  1567.                          highlighted on the screen.  If the text is found,
  1568.                          but lies horizontally outside the currently
  1569.                          visible columns, the entire line will be
  1570.                          highlighted (that is rather than scrolling the
  1571.                          screen horizontally to the search text).
  1572.  
  1573.  
  1574.                     <RETURN>  or  <F3>
  1575.  
  1576.                          Repeat the last Search operation.  As for the
  1577.                          initial search, if there is a highlighted entry on
  1578.                          the screen, the search starts there - otherwise
  1579.                          from the top screen line for forward searches or
  1580.                          the bottom screen line for backward searches.  The
  1581.                          search will not cycle through from the end of the
  1582.                          file back to the beginning - use <HOME>.  The
  1583.                          search string is retained across multiple file
  1584.                          openings.
  1585.  
  1586.  
  1587.  
  1588. BTS Utilities User Manual                                    (VIEW) Page 31
  1589. ___________________________________________________________________________
  1590.  
  1591.  
  1592.                     <CTRL-RETURN>
  1593.  
  1594.                          Repeat the last Search operation, but in the
  1595.                          opposite direction.
  1596.  
  1597.                The Goto and Search functions have the normal single key
  1598.                activation code, but also respond to any of the ASCII keys
  1599.                entered through the keyboard.  For shortcut purposes it is
  1600.                assumed that all numeric keys are intended for the <ALT g>
  1601.                Goto function, and the other non CTRL and ALT keys are
  1602.                destined for the <ALT s> Search function.  Obviously search
  1603.                operations can start with a leading number; but for these
  1604.                explicitly enter the <ALT s> and then the numeric text.
  1605.  
  1606.  
  1607.  
  1608.                POPUP MENU
  1609.                __________
  1610.  
  1611.                The popup menu, initiated by </>, provides a means for
  1612.                setting search direction and search case sensitivity flags,
  1613.                and an alternative mechanism for many of the functions
  1614.                described above.  The popup menu command entries are shown
  1615.                below, with the equivalent keyboard key function at the
  1616.                right:
  1617.  
  1618.                     o  display file list          <ALT f>
  1619.  
  1620.                     o  enter file matchlist spec  <ALT m>
  1621.  
  1622.                     o  open next file             <keypad +>
  1623.  
  1624.                     o  open previous file         <keypad ->
  1625.  
  1626.                     o  search for text string     <ALT s>
  1627.  
  1628.                     o  set search direction
  1629.  
  1630.                     o  set search case sensitivity
  1631.  
  1632.  
  1633.  
  1634. EXAMPLE:       To start the VIEW program in 43 line mode, using the banner
  1635.                name and color information from the c:\bin\personal.cfg
  1636.                configuration file, to start with a filelist of all files
  1637.                with an extension starting with the letter "p" expect for
  1638.                files with a .pag extension, and to exit immediately on
  1639.                <ESC> without a verification window:
  1640.  
  1641.                     view -V43 *.p* !*.pag -XI @c:\bin\personal.cfg
  1642.  
  1643.  
  1644.  
  1645.  
  1646. BTS Utilities User Manual                                      (WI) Page 32
  1647. ___________________________________________________________________________
  1648.  
  1649.  
  1650. 10.0 WI                                                                V1.4
  1651. ___________________________________________________________________________
  1652.  
  1653.     PURPOSE:   A multi-drive file find utility that is capable of carrying
  1654.                out an arbitrary action on the located file(s).
  1655.  
  1656.     USAGE:     wi -? [drives:][path]matchlist -[pP] -d#:# -s#:# -d -s -h
  1657.                   -t -D -S -H -T -[oO] -c[#] -C[#] -x[#l#cdst] :DOS-command
  1658.  
  1659.                where (all arguments are optional):
  1660.  
  1661.                     -?        provide two complete help screens for the WI
  1662.                               command.  The first covers the search
  1663.                               criteria arguments, while the second page
  1664.                               covers arguments for the associated DOS
  1665.                               command operation.
  1666.  
  1667.                     [drives:] specification for the drives to be included
  1668.                               in the search.  This defaults to the current
  1669.                               drive if not specified.  Multiple drives can
  1670.                               be specified by concatenating the letters
  1671.                               together (e.g. cde:), by *: to indicate all
  1672.                               fixed drives, or ?: to indicate all drives,
  1673.                               whether removable or not.
  1674.  
  1675.  
  1676.                     [path]    the root of the branch (on each drive) the
  1677.                               search is to start from.  This defaults to
  1678.                               the root of the drive(s) if not stated.  To
  1679.                               start the search from the current directory,
  1680.                               enter the path as ".\".
  1681.  
  1682.  
  1683.                     matchlist
  1684.                               any valid file matchlist specification.  For
  1685.                               example:
  1686.  
  1687.                                    *.doc *.txt *.asc !known.doc
  1688.  
  1689.                               If no matchlist is provided, but a search
  1690.                               criteria is, such as a date range or file
  1691.                               attribute, then a default *.* matchlist is
  1692.                               assumed.  For example, to find all files on
  1693.                               the current drive that were modified today:
  1694.  
  1695.                                    wi -d=0
  1696.  
  1697.  
  1698.                     -p / -P   specify if there should be a Pause after each
  1699.                               complete output screen.  Default is pause:
  1700.                               -P.
  1701.  
  1702.                     -d#:#     date range search criteria in days since last
  1703.                               modification.  The #:# range specifies the
  1704.                               first through the last day to be included.
  1705.  
  1706. BTS Utilities User Manual                                      (WI) Page 33
  1707. ___________________________________________________________________________
  1708.  
  1709.  
  1710.                               If the first # is omitted, it is assumed to
  1711.                               be today (0), if the last # is omitted it is
  1712.                               assumed to be infinity (at least before the
  1713.                               1980 start date where life as we know it
  1714.                               began).  Commas can be inserted anywhere in
  1715.                               the numbers as desired.  As a shorthand, a
  1716.                               single specific day can be specified as =#.
  1717.                               For example:
  1718.  
  1719.                                    today's files
  1720.                                         -d0:0    or   -d:0    or   -d=0
  1721.  
  1722.                                    within the last 4 days
  1723.                                         -d:4
  1724.  
  1725.                                    more than one week old
  1726.                                         -d8:
  1727.  
  1728.                     -s#:#     file size range search criteria in bytes.
  1729.                               Commas can be inserted for legibility.  The
  1730.                               range encoding is as above for dates, for
  1731.                               example, files of 1Mb or more are specified
  1732.                               as:
  1733.                                         -s1,000,000:
  1734.  
  1735.                     -d        include subdirectory names in the search
  1736.                               operation.  Normally subdirectory names are
  1737.                               not included in the match operation.  The
  1738.                               term "file" as used here and subsequently,
  1739.                               infers files and directories if the -d
  1740.                               argument is set.  The size specification does
  1741.                               not apply to directories.
  1742.  
  1743.                     -s        include system files in the search.  Normally
  1744.                               system files are not examined.
  1745.  
  1746.                     -h        include hidden files in the search.  Normally
  1747.                               hidden files are not examined.
  1748.  
  1749.                     -t        display summary total at the completion of
  1750.                               the command.  The summary identifies the
  1751.                               number of files and or directories, and the
  1752.                               total number of bytes involved.  Without the
  1753.                               -t argument, this is only shown if more than
  1754.                               5 files are selected.
  1755.  
  1756.                     -D        include ONLY subdirectory names.  That is,
  1757.                               ignore files during the selection process.
  1758.  
  1759.                     -S        include ONLY files that have the system
  1760.                               attribute set.  Ignore normal files.
  1761.  
  1762.                     -H        include ONLY files that have the hidden
  1763.                               attribute set.  Ignore normal files.
  1764.  
  1765.  
  1766. BTS Utilities User Manual                                      (WI) Page 34
  1767. ___________________________________________________________________________
  1768.  
  1769.  
  1770.                     -T        display ONLY the summary total.  Do not show
  1771.                               status lines for each selected file.
  1772.  
  1773.                     -o / -O   display Output lines for selected files and
  1774.                               the summary. The -o option is similar to -T
  1775.                               except that even the summary is inhibited
  1776.                               from being displayed.  The default is to
  1777.                               always issue status lines and the summary if
  1778.                               there are more than 5 selected files: -O.
  1779.                               This command has no affect on the text issued
  1780.                               from programs initiated through the DOS-
  1781.                               command facility.
  1782.  
  1783.  
  1784.                Whereas the preceding arguments covered the search
  1785.                criteria and the presentation of the selected files, the
  1786.                following arguments determine the operations to be
  1787.                done with the selected file when the match occurs.
  1788.  
  1789.  
  1790.                     -c[#]     on completion of the search operation, change
  1791.                               directories to the drive:path associated with
  1792.                               the #th selected match.  If the # argument is
  1793.                               not specified, the first match is assumed.
  1794.  
  1795.                     -C[#]     as per -c[#] except change directories
  1796.                               immediately when the #th match occurs, rather
  1797.                               than searching for additional matches.
  1798.  
  1799.                     -x[#l#cdst]
  1800.                               execution flags for the processing of the
  1801.                               DOS-command line:
  1802.  
  1803.                                 #  maximum number of matches that are to
  1804.                                    occur before stopping.  The default is
  1805.                                    effectively infinity (don't stop due to
  1806.                                    matches).
  1807.  
  1808.                                 l# maximum number of directory levels to
  1809.                                    search.  To search only the current
  1810.                                    directory, specify -xl1
  1811.  
  1812.                                 c  before performing the command, tempor-
  1813.                                    arily change the current directory to
  1814.                                    the directory containing the selected
  1815.                                    file.
  1816.  
  1817.                                 d  only execute the command once per
  1818.                                    directory.  The command will be carried
  1819.                                    out for each directory containing at
  1820.                                    least one selection.  File variables
  1821.                                    within the command, such as $f (see
  1822.                                    below), refer to the directory
  1823.                                    containing the selections and not to the
  1824.                                    selections themselves.
  1825.  
  1826. BTS Utilities User Manual                                      (WI) Page 35
  1827. ___________________________________________________________________________
  1828.  
  1829.  
  1830.                                 s  show each command line executed.  Each
  1831.                                    command line, with expanded arguments,
  1832.                                    is displayed, preceded by "WI".
  1833.  
  1834.                                 t  test mode - display the command line(s)
  1835.                                    that would be executed, as for the -xs
  1836.                                    option, but don't actually execute it.
  1837.  
  1838.                     :DOS-command
  1839.                               a valid DOS command, complete with any
  1840.                               desired arguments.  The command line is
  1841.                               executed for each matched file.  In the same
  1842.                               manner as for ToolBOX and the MAKEBAT
  1843.                               programs, the command line can contain
  1844.                               embedded variables for matched filenames:
  1845.  
  1846.                                    $D  current drive letter
  1847.                                    $P  current path
  1848.                                    $d  matched drive letter
  1849.                                    $p  matched path
  1850.                                    $n  filename (to 8 characters)
  1851.                                    $x  extension(to 3 characters)
  1852.                                    $f  minimized matched filename  (for
  1853.                                        required portions of $d:$p\$n.$x)
  1854.                                    $$  a single $
  1855.  
  1856.                               If the match corresponds to a directory (e.g.
  1857.                               d:\dos), then:
  1858.  
  1859.                                    $p    corresponds to      \dos
  1860.  
  1861.                                               while
  1862.  
  1863.                                    $f    corresponds to      \dos\.
  1864.  
  1865.                               Whatever output is generated from the [DOS-
  1866.                               command] itself is not included in the
  1867.                               pagination calculation for the -P screen
  1868.                               pause option.  Text lines will likely scroll
  1869.                               off the top of the screen.
  1870.  
  1871.                The factory default is equivalent to: wi -PO
  1872.  
  1873.                For the WI arguments:
  1874.  
  1875.                     o case is only significant for options that have
  1876.                       different interpretations for the upper and lower
  1877.                       case settings.
  1878.  
  1879.                     o order is not significant, except that if it exists,
  1880.                       the :[DOS-command] argument must be the last argument
  1881.                       on the command line.
  1882.  
  1883.                     o there is no ambiguity among the arguments if they are
  1884.                       properly stated.
  1885.  
  1886. BTS Utilities User Manual                                      (WI) Page 36
  1887. ___________________________________________________________________________
  1888.  
  1889.  
  1890.     SUMMARY:   The wi utility searches through drives or a directory branch
  1891.                for files and/or directories that fulfill a given set of
  1892.                criteria.  As described in detail above, the search criteria
  1893.                can be any of:
  1894.  
  1895.                     o matchlist specification for filenames
  1896.  
  1897.                     o file type attributes for directories, hidden, or
  1898.                       system.
  1899.  
  1900.                     o days since last modification
  1901.  
  1902.                     o file size in bytes
  1903.  
  1904.                The search is conducted through a specified directory and
  1905.                then all of its descendant subdirectories.  Normally the
  1906.                search starts from the root directory, yielding a search of
  1907.                all directories on the disk.  Disk drives to be searched can
  1908.                be stated individually or by referring to all disk drives,
  1909.                or to all non-removable disk drives.
  1910.  
  1911.                For each file (or directory) that is selected based on the
  1912.                search criteria, a status line is generated on the screen.
  1913.  
  1914.                Optionally, it is possible to carry out an action on each of
  1915.                these selected files.  This could be as simple as changing
  1916.                the current directory to that of the selected file, or as
  1917.                complicated as can be stated within a DOS command line.
  1918.                Variables are available for referencing the selected files
  1919.                from within the DOS command line.
  1920.  
  1921.                For details refer to the argument descriptions in the USAGE
  1922.                section above.
  1923.  
  1924.  
  1925.     EXAMPLE:   1) Find all the .DAT files on the hard disks and get a total
  1926.                   of the disk space they occupy (sample output shown for
  1927.                   this example only):
  1928.  
  1929.                     wi *:*.dat
  1930.  
  1931.                    18,944  15Nov91 01:39  C:\BIN\BTS-TREE.DAT
  1932.                       672  16Oct89 07:46  C:\DEV\TBOX\MAKETEST\LINES.DAT
  1933.                   232,232  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\CONTRY.DAT
  1934.                       578  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\BUBBLE.DAT
  1935.                    47,288  11Aug91 00:33  D:\PKG\PAF\PAF-DATA\INDIV2.DAT
  1936.                     2,192  12Sep88 10:38  D:\PKG\QB\QCARDS.DAT
  1937.                    25,268  21Dec90 00:00  D:\PKG\PCPLUS\MODEMS.DAT
  1938.                   302,848  18Jly90 12:00  E:\PKG\WINWORD\SYN-AM.DAT
  1939.                   188,584  18Jly90 12:00  E:\PKG\WINWORD\LEX-AM.DAT
  1940.                    24,072  18Jly90 12:00  E:\PKG\WINWORD\HYPH.DAT
  1941.                       338  18Jly90 12:00  E:\PKG\WINWORD\PCW-RTF.DAT
  1942.                10 files (633,707 bytes)
  1943.  
  1944.  
  1945.  
  1946. BTS Utilities User Manual                                      (WI) Page 37
  1947. ___________________________________________________________________________
  1948.  
  1949.  
  1950.                2) Find all the hidden files on the current drive and then
  1951.                   change directories to where the first one occurred:
  1952.  
  1953.                     wi /H -c
  1954.  
  1955.  
  1956.                3) Find and view the contents of all the README.DOC files on
  1957.                   all disks:
  1958.  
  1959.                     wi ?:readme.doc /xop :view $f
  1960.  
  1961.  
  1962.                4) Delete all temporary .BAK, .TMP, and .OLD files on all
  1963.                   hard disks that are at least 2 days old:
  1964.  
  1965.                     wi *:*.bak *.tmp *.old -d2: -p :del $f
  1966.  
  1967.  
  1968.                5) Copy all hard drive files that were modified today
  1969.                   (except .BAK files) to an archive directory on drive a:
  1970.  
  1971.                     wi -d=0 !*.bak :copy $f a:\save\
  1972.  
  1973.  
  1974.                6) While crude, the following example removes all empty
  1975.                   directories on the current drive.  This is done by
  1976.                   attempting to remove all directories, which only works
  1977.                   for the ones that happen to be empty.  An error message
  1978.                   is in fact generated for each directory regardless; by
  1979.                   DOS if the directory is not empty and cannot be deleted,
  1980.                   and by WI if it was deleted since WI can then no longer
  1981.                   find it to search as a descendant.  This will only remove
  1982.                   one level of empty directories at a time.  Repeat for
  1983.                   successive levels.
  1984.  
  1985.                     wi -D -p :rmdir $p
  1986.  
  1987.  
  1988.                7) For the current directory and all of it's descendant
  1989.                   directories, do a DOS dir command, if and only if, there
  1990.                   is at least one .WK1 file.  Redirect all the DIR command
  1991.                   outputs (inhibit all WI output) to a data file for later
  1992.                   examination.  Note the redirection occurs for the WI
  1993.                   command as a whole, not for the individual [DOS-
  1994.                   command]'s.
  1995.  
  1996.                     wi .\*.wk1 -xd  -p -o :dir $p >wk1dirs.txt
  1997.  
  1998.                               or equivalently
  1999.  
  2000.                     wi .\*.wk1 -xdc -p -o :dir    >wk1dirs.txt
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006. BTS Utilities User Manual                                      (WI) Page 38
  2007. ___________________________________________________________________________
  2008.  
  2009.  
  2010. APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY
  2011.  
  2012.  
  2013.     NOTE:   -? is a valid request for help for all command line programs.
  2014.  
  2015.  
  2016.           ────────────────────────────────────────────────────────────
  2017.  
  2018.  
  2019.     USAGE: BTSPATCH program[.exe] [=new-parameter-list]
  2020.  
  2021.         WHERE:
  2022.  
  2023.           program[.exe]            any Binary Toolshed program.
  2024.  
  2025.           [=new-parameter-list]    valid set of arguments for specified
  2026.                                    program.
  2027.  
  2028.         DEFAULTS:
  2029.  
  2030.           none
  2031.  
  2032.         EXAMPLE:
  2033.  
  2034.           btspatch wi =-t
  2035.  
  2036.           ────────────────────────────────────────────────────────────
  2037.  
  2038.  
  2039.     USAGE: DIRS [path] [-l#] [-pP] [-sS]
  2040.  
  2041.         WHERE:
  2042.  
  2043.           [path]    root directory of branch to be displayed.
  2044.           -l#       maximum reported subdirectory level(s).
  2045.           -pP       pause after output screens.
  2046.           -sS       inhibit Summary report.
  2047.  
  2048.         DEFAULTS:
  2049.  
  2050.           dirs .\ -l7 -P -S
  2051.  
  2052.         EXAMPLE:
  2053.  
  2054.           dirs \workdirs -l1 /p
  2055.  
  2056.  
  2057.           ────────────────────────────────────────────────────────────
  2058.  
  2059.  
  2060. BTS Utilities User Manual                                      (WI) Page 39
  2061. ___________________________________________________________________________
  2062.  
  2063.  
  2064.     USAGE: DRIVES [-f]
  2065.  
  2066.         WHERE:
  2067.  
  2068.           -f        read floppy drive media.
  2069.  
  2070.         DEFAULTS:
  2071.  
  2072.           drives
  2073.  
  2074.         EXAMPLE:
  2075.  
  2076.           drives -f
  2077.  
  2078.  
  2079.           ────────────────────────────────────────────────────────────
  2080.  
  2081.  
  2082.     USAGE: MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  2083.  
  2084.         WHERE:
  2085.  
  2086.           [d:][path]matchlist      file selection criteria.
  2087.           [@template.ext]          template text file.  If absent, input
  2088.                                    assumed from STDIN.  Contents of temp-
  2089.                                    late file copied to STDOUT for each
  2090.                                    matched file (except for lines preceded
  2091.                                    with [ and ] which are copied as the
  2092.                                    leading and trailing lines of STDOUT
  2093.                                    respectively).  Variables within the
  2094.                                    template file are substituted for as
  2095.                                    follows based on the matched name:
  2096.  
  2097.                                         $D  current drive letter
  2098.                                         $P  current path
  2099.                                         $d  matched drive letter
  2100.                                         $p  matched path
  2101.                                         $n  filename (to 8 chars)
  2102.                                         $x  extension (to 3 chars)
  2103.                                         $f  minimized file name
  2104.                                             (for $d:$p\$n.$x)
  2105.                                         $$  a single $
  2106.  
  2107.                                    Command line arguments substituted for:
  2108.  
  2109.                                         $1  arg1
  2110.                                         $2  arg2
  2111.                                          . . .
  2112.  
  2113.           [-arg1]...               Substituted into template file as above.
  2114.            
  2115.  
  2116.         DEFAULTS:
  2117.  
  2118.           none
  2119.  
  2120. BTS Utilities User Manual                                      (WI) Page 40
  2121. ___________________________________________________________________________
  2122.  
  2123.  
  2124.  
  2125.         EXAMPLE:
  2126.  
  2127.           makebat *.prn @fprint.tem >fprint.bat
  2128.  
  2129.                WHERE FPRINT.TEM contains:
  2130.  
  2131.                [
  2132.                [ SAMPLE TO PRINT AND DELETE FILES
  2133.                [
  2134.                copy $f prn:
  2135.                del $f
  2136.  
  2137.  
  2138.           ────────────────────────────────────────────────────────────
  2139.  
  2140.  
  2141.     USAGE : ONPATH matchlist [=setVariable] ...
  2142.  
  2143.         WHERE:
  2144.  
  2145.           matchlist      specification for files to be located on the PATH.
  2146.  
  2147.           [=setVariable] alternative set variable [to PATH] defining the
  2148.                          directories to be searched.
  2149.  
  2150.         DEFAULTS:
  2151.  
  2152.           none
  2153.  
  2154.         EXAMPLE:
  2155.  
  2156.           onpath wp*
  2157.  
  2158.  
  2159.           ────────────────────────────────────────────────────────────
  2160.  
  2161.  
  2162.  
  2163. BTS Utilities User Manual                                      (WI) Page 41
  2164. ___________________________________________________________________________
  2165.  
  2166.  
  2167.     USAGE : TOASCII <pcchars.in >ascii.out
  2168.  
  2169.         WHERE:
  2170.  
  2171.           <              STDIN input file containing IBM PC 8 bit
  2172.                          characters.
  2173.  
  2174.           >              STDOUT output file containing STDIN file
  2175.                          filtered to standard ASCII scharacter values.
  2176.         DEFAULTS:
  2177.  
  2178.           none
  2179.  
  2180.         EXAMPLE:
  2181.  
  2182.           toascii <pcchars.in >ascii.out
  2183.  
  2184.  
  2185.           ────────────────────────────────────────────────────────────
  2186.  
  2187.  
  2188.     USAGE : TREE  path  @cfgfile -Dpath  -V[b m s c e v]  -C[m c g]
  2189.                   -X[a#][c][dD][i][t#][uU]
  2190.  
  2191.         WHERE (all arguments are optional):
  2192.  
  2193.           path      display drive and/or directory.
  2194.           -@cfgfile configuration file pathname.
  2195.           -Dpath    directory for BTS-TREE.DAT.
  2196.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2197.           -C        color table selection for Monochrome/Color/Grayscale.
  2198.           -X        execution flags
  2199.                        a#     Audio, WHERE # enables error sounds for
  2200.                               1(border) + 2(syntax) + 4(execution)
  2201.                               +8(automatic directory tree update).
  2202.                        c      force Current drive tree initialization.
  2203.                        d / D  use Datafile.
  2204.                        i      force Initialization of all drive trees.
  2205.                        t#     set filelist update Time (tenths/sec).
  2206.                        uU     Update datafile enable.
  2207.  
  2208.         DEFAULTS:
  2209.  
  2210.           tree .\ -Xa7Dt7U
  2211.  
  2212.         EXAMPLE:
  2213.  
  2214.           tree d:\workarea @d:\bin\mycolors.tem -Xt12
  2215.  
  2216.  
  2217. BTS Utilities User Manual                                      (WI) Page 42
  2218. ___________________________________________________________________________
  2219.  
  2220.  
  2221.     USAGE : VIEW [d:][path\]matchList @cfgfile -V [b m s c e v] [25 43 50]
  2222.                  -C[m c g] -X[a#][cC][iI][rR]
  2223.  
  2224.         WHERE (all arguments are optional):
  2225.  
  2226.  
  2227.           [d:][path\]matchList  filename specifications...
  2228.           @cfgfile  full configuration pathname specification.
  2229.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2230.                     plus setting for number of display lines 25/43/50.
  2231.           -C        color table selection for Monochrome/Color/Grayscale.
  2232.           -X        execution flags
  2233.                         a#     Audio, WHERE # enables error sounds for
  2234.                                1(border) + 2(syntax) + 4(execution).
  2235.                         c / C  make text searches Case sensitive.
  2236.                         i / I  exit Immediately without prompt.
  2237.                         r / R  Restore DOS screen on exit.
  2238.  
  2239.         DEFAULTS:
  2240.  
  2241.           view -Xa7cir)
  2242.  
  2243.         EXAMPLE:
  2244.  
  2245.           view -V43 *.doc *.txt -XI @c:\bin\personal.cfg
  2246.  
  2247.  
  2248.           ────────────────────────────────────────────────────────────
  2249.  
  2250.  
  2251. BTS Utilities User Manual                                      (WI) Page 43
  2252. ___________________________________________________________________________
  2253.  
  2254.  
  2255.  
  2256.     USAGE: WI [drives:][path]matchlist  [-flags]  [:DOS-command]
  2257.  
  2258.         [drives:]        single (a:), multiple (cdf:), all (?:) or all
  2259.                          hard (*:) drive selection.
  2260.         [path]matchlist  file selection criteria.
  2261.         [flags]
  2262.  
  2263.           -?    extended help (including auxiliary DOS command).
  2264.           -pP   pause after output screens.
  2265.           -d#:# select files within range days old.
  2266.           -s#:# select files within range size bytes.
  2267.           -d    include subdirectory names.
  2268.           -s    include system files.
  2269.           -h    include hidden files.
  2270.           -t    display summary total
  2271.           -D    include ONLY subdirectory names.
  2272.           -S    include ONLY system files.
  2273.           -H    include ONLY hidden files.
  2274.           -T    display ONLY summary total.
  2275.           -oO   issue Output lines.
  2276.  
  2277.           -c[#] change dir to #th match on completion (DEFAULTS is first).
  2278.           -C[#] change dir immediately on #th match.
  2279.           -x    execution flags
  2280.                     #    maximum number of matches.
  2281.                     l#   maximum number of directory search levels.
  2282.                     c    change dir before executing cmd line.
  2283.                     d    execute command once per directory.
  2284.                     s    show each command line executed.
  2285.                     t    test mode - just display command lines.
  2286.  
  2287.           [DOS-command]  DOS command line including embedded variables for
  2288.                          matched filenames:
  2289.  
  2290.                               $D  current drive letter
  2291.                               $P  current path
  2292.                               $d  matched drive letter
  2293.                               $p  matched path
  2294.                               $n  filename (to 8 characters)
  2295.                               $x  extension(to 3 characters)
  2296.                               $f  minimized matched filename
  2297.                                      (for $d:$p\$n.$x)
  2298.                               $$  a single $
  2299.  
  2300.  
  2301.         EXAMPLE:
  2302.  
  2303.           wi dc:*.tmp *.old *.pag -d3: -opxt :del $f
  2304.  
  2305.  
  2306.           ────────────────────────────────────────────────────────────
  2307.  
  2308.  
  2309.  
  2310.  
  2311.